using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Skeletons
{
    public partial class FormSetWeight : Form
    {
        private int m_peso;
        private string m_nome;
        private int m_categoria;

		public int peso()
		{
			return m_peso;
		}
		
		public string nome()
		{
			return m_nome;
		}

		public int categoria()
		{
			return m_categoria;
		}

        public FormSetWeight(int peso, string nome, int categoria)
        {
            InitializeComponent();
            m_peso = peso;
            numericUpDown1.Text = peso.ToString();
            txtSkeletonName.Text = nome;
            cmbCategoriaSkel.SelectedIndex = categoria;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
			this.DialogResult = DialogResult.Cancel;
			Hide();
        }

        private void btnOkay_Click(object sender, EventArgs e)
        {
			m_peso = int.Parse(numericUpDown1.Value.ToString());
			m_nome = txtSkeletonName.Text.Trim();
			m_categoria = cmbCategoriaSkel.SelectedIndex;
			this.DialogResult = DialogResult.OK;
            Hide();
        }

		private void FormSetWeight_Load(object sender, EventArgs e)
		{

		}
    }
}